package com.neusoft.neuiotms.dcvm.micro;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.bizcore.auth.common.bean.UserBean;
import com.neusoft.bizcore.auth.service.AuthUserService;
import com.neusoft.bizcore.web.dto.result.ResultDTO;
import com.neusoft.bizcore.webauth.secret.WebAuthMicroService;

@Service
public class WebAuthMicroServiceImpl implements WebAuthMicroService {

    @Autowired
    private AuthUserService authUserService;

    @Override
    public ResultDTO<UserBean> loadUserByUsername(String username) {
        final UserBean userBean = this.authUserService.loadUserByUsername(username);
        return ResultDTO.success(userBean);
    }

}
